<template>
  <div class="toast">
     {{message}}
  </div>
</template>

<script>
export default {
  name: 'toast',
  props: {
    message: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="stylus" scoped>
.toast
  position: fixed
  top: 50%
  left: 50%
  transform: translate(-50%, -50%)
  padding: 8px 20px
  border-radius: 10px
  color: #ffffff
  background-color: rgba(0, 0, 0, 0.5)
  z-index: 999
</style>